package com.ruoyi.common.exception.base.manipulation;

import com.ruoyi.common.utils.StringUtils;

/**
 * @Classname DeleteDataException
 * @Author: sunluquan
 * @Date: 2022/5/9 15:39
 * @Description TODO
 */
public class DeleteDataException  extends BaseDataManipulationException {

    public DeleteDataException(String module, String code, Object[] args, String defaultMessage) {
        super(StringUtils.isEmpty(module)?"data manipulation of delete":module, code, args, defaultMessage);
    }

    public DeleteDataException(String module, String code, Object[] args) {
        this(module, code, args ,null);
    }

    public DeleteDataException(String module, String defaultMessage) {
        this(module , null ,null , defaultMessage);
    }

    public DeleteDataException(String code, Object[] args) {
        this(null,code, args,null);
    }

    public DeleteDataException(String defaultMessage) {
        this(null,null,null,defaultMessage);
    }

    public DeleteDataException() {
        this("删除失败！");
    }
}
